﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendList.aspx.cs" Inherits="RGPWEB.CH.User.SendList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link href="../../inc/Style/index.css" rel="Stylesheet" type="text/css" />
<link href="../../inc/Style/contentstyle.css" rel="Stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../../inc/script/pub.js"></script>
<link href="../../inc/Style/GridView.css" rel="Stylesheet" type="text/css" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
       <div class="title">    
            <h1 class="on"><a href="javascript:void(0)">发件人地址列表</a></h1>
             <h1><a href="Send.aspx?type=add">新增\编辑发件人地址</a></h1>
        </div>
        <div>
            <fieldset>
                <legend>搜索条件</legend>
                <table style="width:100%">
                    <tr>
                        <td style="width: 30px">发件人：</td>
                        <td style="width: 90px">
                            <asp:TextBox ID="txt_recip" runat="server"></asp:TextBox>
                        </td>
                        <td style="width: 360px" id="cb" runat="server">
                            客户：<asp:ComboBox ID="cmb_cus_list" runat="server" AutoCompleteMode="None" DropDownStyle="DropDownList" AppendDataBoundItems="false" ></asp:ComboBox><asp:ToolkitScriptManager ID="ScriptManager1" runat="server" /></td>
                        <td style="width: 30px">地址：</td>
                        <td>
                            <asp:TextBox ID="txt_address" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btn_search" runat="server" Text="搜索" 
                                onclick="btn_search_Click" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </div>
        <div>
            <fieldset id="Fieldset2" style="width:98%">
                <legend> 发件人地址列表</legend>
                <asp:GridView ID="grv_list" runat="server" 
                    AutoGenerateColumns="False" DataKeyNames ="S_ID" 
                    onrowcommand="grv_list_RowCommand" onrowdatabound="grv_list_RowDataBound" 
                    CssClass="Grid" AllowSorting="True" 
                    onselectedindexchanging="grv_list_SelectedIndexChanging">
                    <FooterStyle CssClass="GridFooter" />
                    <RowStyle CssClass="Row" />
                    <HeaderStyle CssClass="HeadingCell" />
                    <Columns>
                        <asp:BoundField HeaderText="发件人" DataField="S_Men" ItemStyle-Width="10%" >
<ItemStyle Width="10%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="企业名称" DataField="S_ShorName" ItemStyle-Width="10%" >
<ItemStyle Width="10%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="电话" DataField="S_Tel" ItemStyle-Width="10%">
<ItemStyle Width="10%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="手机" DataField="S_Mobile" ItemStyle-Width="10%">
<ItemStyle Width="10%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText ="城市" DataField="S_StartCity"/>                        
                        <asp:BoundField HeaderText="邮编" DataField="S_PostCode" ItemStyle-Width="10%">
<ItemStyle Width="10%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="地址" DataField="S_Add" ItemStyle-Width="20%">
<ItemStyle Width="20%"></ItemStyle>
                        </asp:BoundField>
                        <asp:TemplateField>
                            <ItemTemplate>                                
                                <asp:Button ID="btn_edit" runat="server"  Text="编辑" CommandArgument='<%# Eval("S_ID")%>' CommandName="GetID"/>    
                            </ItemTemplate>   
                            <ItemStyle Width="5%" />             
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>      
                                <asp:Button ID="btn_del" runat="server"  Text="删除" CommandArgument='<%# Eval("S_ID")%>' CommandName="delID"/>            
                            </ItemTemplate> 
                            <ItemStyle Width="5%" />                 
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <webdiyer:AspNetPager ID="anp_list" runat="server" HorizontalAlign="Center" 
                    Width="100%" PageIndexBoxType="DropDownList" 
                    PageSize="10" CssClass="paginator" CurrentPageButtonClass="cpb"
                    FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                    onpagechanging="anp_list_PageChanging">
                </webdiyer:AspNetPager>
             </fieldset>
          </div>
    </form>
</body>
</html>
